home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / recurs1a / rollover.htc < prev    next >
Text File  |  1999-07-11  |  522b  |  26 lines

  1. <PUBLIC:COMPONENT>
  2.  
  3. <PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="rollOn()" />
  4. <PUBLIC:ATTACH EVENT="onmouseout"  ONEVENT="rollOff()" />
  5.  
  6. <SCRIPT LANGUAGE="JScript">
  7.  
  8. function rollOn() {
  9.     with (runtimeStyle) {
  10.         cursor = "hand";
  11.         fontWeight = "bolder";
  12.         textDecoration  = "underline";
  13.     }
  14.     event.cancelBubble = true;
  15. }
  16. function rollOff() {
  17.     with (runtimeStyle) {
  18.         cursor = "auto";
  19.         fontWeight = "normal";
  20.         textDecoration  = "none";
  21.     }
  22.     event.cancelBubble = true;
  23. }
  24. </SCRIPT>
  25. </PUBLIC:COMPONENT>
  26.